Skip to main content

Place Order

Request to be POSTed to uri : /NorenWClientTP/PlaceOrder

Request Details :

Json FieldsPossible valueDescription
uid*Logged in User Id
actid*Login users account ID
exch*NSE / NFO / BSE / MCXExchange (Select from ‘exarr’ Array provided in User Details response)
tsym*Unique id of contract on which order to be placed. (use url encoding to avoid special char error for symbols like M&M)
qty*Order Quantity
prc*Order Price
trgprcOnly to be sent in case of SL / SL-M order.
dscqtyDisclosed quantity (Max 10% for NSE, and 50% for MCX)
prd*C / M / HProduct name (Select from ‘prarr’ Array provided in User Details response, and if same is allowed for selected, exchange. Show product display name, for user to select, and send corresponding prd in API call)
trantype*B / SB -> BUY, S -> SELL
prctyp*LMT / MKT / SL-LMT / SL-MKT / DS / 2L / 3L
ret*DAY / EOS / IOCRetention type (Show options as per allowed exchanges)
remarksAny tag by user to mark order.
ordersourceMOB / WEB / TTUsed to generate exchange info fields.
bpprcBook Profit Price applicable only if product is selected as B (Bracket order )
blprcBook loss Price applicable only if product is selected as H and B (High Leverage and Bracket order )
trailprcTrailing Price applicable only if product is selected as H and B (High Leverage and Bracket order )
amoYes , If not sent, of Not “Yes”, will be treated as Regular order.
tsym2Trading symbol of second leg, mandatory for price type 2L and 3L (use url encoding to avoid special char error for symbols like M&M)
trantype2Transaction type of second leg, mandatory for price type 2L and 3L
qty2Quantity for second leg, mandatory for price type 2L and 3L
prc2Price for second leg, mandatory for price type 2L and 3L
tsym3Trading symbol of third leg, mandatory for price type 3L (use url encoding to avoid special char error for symbols like M&M)
trantype3Transaction type of third leg, mandatory for price type 3L
qty3Quantity for third leg, mandatory for price type 3L
prc3Price for third leg, mandatory for price type 3L

Response Details :

Response data will be in json format with below fields.

Json FieldsPossible valueDescription
statOk or Not_OkPlace order success or failure indication.
request_timeResponse received time.
norenordnoIt will be present only on successful Order placement to OMS.
emsgThis will be present only if Order placement fails

Sample Success Response:

{
"request_time": "10:48:03 20-05-2020",
"stat": "Ok",
"norenordno": "20052000000017"
}

Sample Error Response :

{
"stat": "Not_Ok",
"request_time": "20:40:01 19-05-2020",
"emsg": "Error Occurred : 2 \"invalid input\""
}

Example

let orderparams = {
'buy_or_sell' : 'B',
'product_type' : 'C',
'exchange' : 'NSE',
'tradingsymbol' : 'CANBK-EQ',
'quantity' : 1,
'discloseqty' : 0,
'price_type' : 'LMT',
'price' : 175.0
};

api.place_order(orderparams)
.then((reply) => {
console.log(reply);
}